<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>8-卡片居中案例</title>
    <style>
        *{
            margin:0;
            padding:0;
            font-family: 'Micorsoft yahei';
        }
        body{
            background: #f5f5f5;
        }
        .box{
            width: 234px;
            height: 300px;
            background: #ffffff;
            /* 居中 */
            margin: 30px auto;
            text-align: center;
        }
        .nine{
            height: 25px;
            line-height: 25px;
            font-size: 14px;
        }
        .toy{
            font-size:12px;
            color: #cccccc;
            height: 30px;
        }
        .price{
            font-size: 14px;
            color:#ffa500;
        }
    </style>
</head>
<body>
    <div class="box">
        <img src="images/160.jpg" alt="">
        <p class="nine">九号平衡车</p>
        <p class="toy">成年人的玩具</p>
        <p class="price">1999元</p>
    </div>
</body>
</html>